#ifndef EDITOROBJECTREE_H
#define EDITOROBJECTREE_H
#include "StompedReality/Core/GameAccess.h"
#include "StompedReality/Core/IGame.h"
#include "StomperLib/Controls/FileTree.h"
#include "StomperLib/Objects/EditorObjectCollector.h"
#include <assert.h>
namespace StomperLib {
namespace Controls
{
class EditorObjectTree : public StomperLib::Controls::FileTree
{
 private:

  std::vector<StomperLib::EditorObjectCollector*> m_Collectors;
  bool m_AddGlobalSelection;

  void AddItems( std::shared_ptr<std::vector<FileInfoObjectTuple> > items, std::string header );
  void AddItem( FileInfoObjectTuple tuple );
  void AddItemGlobal( FileInfoObjectTuple tuple, std::string header );

 public:

  GWEN_CONTROL( EditorObjectTree, StomperLib::Controls::FileTree );

  void AddCollector( StomperLib::EditorObjectCollector* collector );
  void SetAddGlobalSelection( bool value );
  void CollectItems( );
};

}
}

#endif // ifndef EDITOROBJECTREE_H